package com.gaoding.shared.dict.entity;

import com.gaoding.orm.entity.BaseEntity;
import lombok.*;
import lombok.experimental.Accessors;
import org.hibernate.annotations.SQLDelete;
import org.hibernate.annotations.Where;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;


/**
 * 多语言信息表(DictLanguage)实体类
 *
 * @author mobai
 * @since 2021-02-02 09:58:36
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@Entity
@Table(name = "dict_language")
@SQLDelete(sql = "update dict_language set status=0 where id=?")
@Where(clause = "status=1")
public class DictLanguage extends BaseEntity implements Serializable {
    private static final long serialVersionUID = -64297760544337111L;


    /**
     * 语言编码
     */

    private String languageCode;


    /**
     * 语言名称描述
     */

    private String languageName;


    /**
     * 状态
     * 1： 有效
     * 0： 无效
     */

    private Integer status;


}